Skip to content

(Samples app) Preserve world position of mouse cursor after scroll zoom#1021

Open
iforce2d wants to merge 1 commit intoerincatto:mainfrom
iforce2d:main
Open

(Samples app) Preserve world position of mouse cursor after scroll zoom#1021
iforce2d wants to merge 1 commit intoerincatto:mainfrom
iforce2d:main

Conversation

@iforce2d
Copy link
Copy Markdown

After scroll zoom, reposition camera so that world location under mouse cursor remains unchanged (a la Google maps and many other graphical editors) to allow zoom and pan in one action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant